home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Oberon⁄F™ 1.2 / Preinstalled version / Obx / Docu / Cubes (.txt) < prev    next >
Encoding:
Oberon Document  |  1996-04-11  |  3.5 KB  |  62 lines  |  [oODC/obnF]

  1. Documents.StdDocumentDesc
  2. Documents.DocumentDesc
  3. Containers.ViewDesc
  4. Views.ViewDesc
  5. Stores.StoreDesc
  6. Documents.ModelDesc
  7. Containers.ModelDesc
  8. Models.ModelDesc
  9. Stores.ElemDesc
  10. TextViews.StdViewDesc
  11. TextViews.ViewDesc
  12. TextModels.StdModelDesc
  13. TextModels.ModelDesc
  14. TextModels.AttributesDesc
  15. Helvetica
  16. TextRulers.StdRulerDesc
  17. TextRulers.RulerDesc
  18. TextRulers.StdStyleDesc
  19. TextRulers.StyleDesc
  20. TextRulers.AttributesDesc
  21. Helvetica
  22. Helvetica
  23. FormViews.StdViewDesc
  24. FormViews.ViewDesc
  25. FormModels.StdModelDesc
  26. FormModels.ModelDesc
  27. ObxCubes.View^
  28. FormControllers.StdControllerDesc
  29. FormControllers.ControllerDesc
  30. Containers.ControllerDesc
  31. Controllers.ControllerDesc
  32. Helvetica
  33. DevCommanders.StdViewDesc
  34. DevCommanders.ViewDesc
  35. StdLinks.LinkDesc
  36. StdCmds.OpenDoc('Obx/Mod/Cubes')
  37. Helvetica
  38. Oberon by Example: ObxCubes
  39. This example implements a simple rotating cube view. The cube rotates around two axes. It performs 10 state transformations per second and after 25.6 seconds it is back in its starting position.
  40. What this example shows is the use of actions. Services.Actions  are objects whose Do  procedures are executed in a delayed fashion, when the system is idle. An action which re-installs itself whenever it is invoked as in this example operates as a non-preemptive background task.
  41. This example also demonstrates a simple property editor through which the colors of the sides of a cube can be changed. To open the property editor click into the cube while holding down the modifier key (or execute the command below to open the dialog). The property editor always shows the colors of the selected cube. The synchronization between the color fields in the dialog and the selected cube is also performed through the installed action. The colors of the sides are actually changed by a notifier which is attached to each color control in the property dialog. The color white is interpreted as invisible.
  42.  "ObxCubes.Deposit; StdCmds.Open"
  43.  "StdCmds.OpenToolDialog('Obx/Rsrc/Cubes', 'Cube Colors')"
  44. ObxCubes
  45. sources
  46. TextControllers.StdCtrlDesc
  47. TextControllers.ControllerDesc
  48. TextRulers.StdRulerDesc
  49. TextRulers.RulerDesc
  50. Views.ViewDesc
  51. Stores.StoreDesc
  52. TextRulers.StdStyleDesc
  53. TextRulers.StyleDesc
  54. Models.ModelDesc
  55. Stores.ElemDesc
  56. TextRulers.AttributesDesc
  57. TextModels.AttributesDesc
  58. Helvetica
  59. Documents.ControllerDesc
  60. Containers.ControllerDesc
  61. Controllers.ControllerDesc
  62.